home *** CD-ROM | disk | FTP | other *** search
/ MACD 5 / MACD 5.bin / workbench / libs / unixlib.lha / unix / include / bsdsocket.h < prev    next >
C/C++ Source or Header  |  1996-10-13  |  1KB  |  61 lines

  1. #ifndef BSDSOCKET_H
  2. #define BSDSOCKET_H
  3.  
  4. #ifndef _UNISTD_H_
  5. #include <unistd.h>
  6. #endif
  7.  
  8. #ifndef EXEC_TYPES_H
  9. #include <exec/types.h>
  10. #endif
  11. #ifndef _CDEFS_H_
  12. #include <sys/cdefs.h>
  13. #endif
  14. #ifndef EXEC_LIBRARIES_H
  15. struct Library;
  16. #endif
  17. #ifndef _SYS_TIME_H_
  18. #include <sys/time.h>
  19. #endif
  20. #ifndef _SYS_SOCKET_H
  21. #include <sys/socket.h>
  22. #endif
  23. #ifndef NETDB_H
  24. struct hostent;
  25. struct netent;
  26. struct servent;
  27. struct protoent;
  28. #endif
  29. #ifndef NETINET_IN_H
  30. #include <netinet/in.h>
  31. #endif
  32. #ifndef _STAT_H
  33. #include <sys/stat.h>
  34. #endif
  35.  
  36. #ifndef _STDARG_H
  37. #include <stdarg.h>
  38. #endif
  39.  
  40. /* autoinit.c */
  41. extern int h_errno;
  42. extern struct Library *SocketBase;
  43. long __stdargs _STI_200_openSockets(void);
  44. void __stdargs _STD_200_closeSockets(void);
  45.  
  46. /* dummy.c */
  47. struct hostent  *gethostent(void);
  48. struct netent  *getnetent(void);
  49. struct servent  *getservent(void);
  50. struct protoent *getprotoent(void);
  51.  
  52. /* stubs.c */
  53. #if !defined(_OPTINLINE) /* these are inlined for SAS/C */
  54. char * inet_ntoa(struct in_addr addr);
  55. struct in_addr inet_makeaddr(int net, int host);
  56. unsigned long inet_lnaof(struct in_addr addr);
  57. unsigned long inet_netof(struct in_addr addr);
  58. #endif
  59.  
  60. #endif
  61.